package com.wudl.govern.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * meta_trigger
 *
 * @author wudl
 */
@Data
@ApiModel
public class MetaTriggerVO {

    @ApiModelProperty(value = "触发器id")
    private Integer metaTrigId;

    @ApiModelProperty(value = "触发器名称")
    private String triggerName;

    @ApiModelProperty(value = "触发器全名")
    private String triggerFullName;

    @ApiModelProperty(value = "简称")
    private String triggerShortName;

    @ApiModelProperty(value = "触发条件")
    private String actionCondition;

    @ApiModelProperty(value = "执行主体语句")
    private String actionStatement;

    @ApiModelProperty(value = "before,after等语句")
    private String actionTiming;

    @ApiModelProperty(value = "insert,update,delete事件")
    private String eventManipulation;

    @ApiModelProperty(value = "row行级和statement级触发器")
    private String actionOreintation;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "属性map")
    private String attributeMap;

    @ApiModelProperty(value = "所属表id")
    private Integer metaTableId;

    @ApiModelProperty(value = "数据状态 0无效 1有效")
    private Integer dataState;

    @ApiModelProperty(value = "trigger_version")
    private Integer triggerVersion;

    @ApiModelProperty(value = "最后操作： 0 初始状态  1新增，2修改，3删除")
    private Integer lastOperation;

    @ApiModelProperty(value = "0:初始状态 1待审核  2审核通过 3审核不通过")
    private Integer lastOperationStatus;

    @ApiModelProperty(value = "数据库id")
    private Integer metaDbDirId;

    @ApiModelProperty(value = "1:字段,2:索引,3:外键,4:触发器")
    private Integer contentType;

}